package com.wsoft.bpm.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wsoft.bpm.dto.ActProcessDTO;
import com.wsoft.bpm.vo.ProcessListVO;

import java.util.List;

/**
 * @Author zhonglj
 * @Date 2024-08-28 15:20
 */
public interface ActProcessService {
    /**
     * 流程列表查询
     *
     * @param dto
     * @return com.wsoft.bpm.vo.ProcessListVO
     * @author zhonglj
     * @date 2024-09-19 16:00
     **/
    Page<ProcessListVO> pageList(ActProcessDTO dto);

    /**
     * 将指定的部署信息重置为当前的模型数据
     *
     * @param deploymentId
     * @param fileName
     * @return java.lang.Boolean
     * @author zhonglj
     * @date 2024-10-08 15:57
     **/
    Boolean resetModel(String deploymentId, String fileName);

    /**
     * 预览指定版本xml
     *
     * @param deploymentId
     * @param fileName
     * @return java.lang.String
     * @author zhonglj
     * @date 2024-10-18 16:32
     **/
    String xmlView(String deploymentId, String fileName);

    /**
     * 挂起流程
     *
     * @param processDefinitionId
     * @return void
     * @author zhonglj
     * @date 2024-10-19 9:22
     **/
    void suspend(String processDefinitionId);

    /**
     * 激活流程
     *
     * @param processDefinitionId
     * @return void
     * @author zhonglj
     * @date 2024-10-19 9:49
     **/
    void active(String processDefinitionId);
}
